﻿// ----------------------------------------------------------------------
//
// <copyright file="Resell_Title.cs" company="TheAcidToy Inc" Date="2012">
//     TheAcidToy is a registered trademark of TheAcidToy Inc. All right reserved, copywrited: 2012
// </copyright>
//
// ------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using HtmlAgilityPack;

    public class Resell_Title
    {
        public static string get_Title(string url)
        {
            var wed = new HtmlWeb();
            var doc = wed.Load(url);
            foreach (var node in doc.DocumentNode.SelectNodes("//title"))
            {
                return node.InnerHtml;
                break;
            }
            return "Error";
        }
    }
